using System;

namespace ConsoleApplication
{
    public class DisposableScript : IDisposable {


        public static void Execute () {
            var a = new DisposableScript();
            a.sayHello();
            
        }

        public void sayHello() {
            Console.WriteLine("hello");
        }

       public void Dispose() {
        //Dispose(true);
        	Console.WriteLine("DisposableScript Dispose");
        }

        ~DisposableScript () {
            Console.WriteLine("DisposableScript Desctruction");
        }
    }
}
